Hi, my self Ravi Vishwakarma. I have completed my studies at SPICBB Varanasi. now I completed MCA with 76% form Veer Bahadur Singh Purvanchal University Jaunpur.
SWE @ MindStick | Software Engineer | Web Developer | .Net Developer | Web Developer | Backend Engineer | .NET Core Developer
Ravi Vishwakarma
11-Jun-2024The
ref
keyword is used to pass arguments to methods by reference, rather than by value. This means that any changes made to the parameter within the method will affect the original variable outside of the method.Here's how it works:
Output:
Without the
ref
keyword, changes made to the parameterx
inside theChangeNumber
the method would not affect the originalnum
variable.Read more -
Difference between static, readonly, and constant in C#
What is the use of "p" tag in HTML
How do you change the fonts of the webpage?